import { createRouter, createWebHistory } from 'vue-router'
import QuestionForm from '../components/QuestionForm.vue'
import QuestionInput from '../components/QuestionInput.vue'
import HistoryView from '../views/HistoryView.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: QuestionForm
  },
  {
    path: '/question',
    name: 'question',
    component: QuestionInput
  },
  {
    path: '/history',
    name: 'history',
    component: HistoryView
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 